View Javadoc

1   // ObjectStreamClass.java, created Mon Jul  8  0:41:49 2002 by joewhaley
2   // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu>
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
4   package joeq.ClassLib.Common.java.io;
5   
6   import joeq.Class.jq_Class;
7   import joeq.Class.jq_Type;
8   import joeq.Runtime.Reflection;
9   import jwutil.util.Assert;
10  
11  /***
12   * ObjectStreamClass
13   *
14   * @author  John Whaley <jwhaley@alum.mit.edu>
15   * @version $Id: ObjectStreamClass.java 1941 2004-09-30 03:37:06Z joewhaley $
16   */
17  public abstract class ObjectStreamClass {
18      private static void initNative() {}
19      private static void getFieldIDs(java.io.ObjectStreamField[] a, long[] b, long[] c) {
20          Assert.TODO();
21      }
22      private static boolean hasStaticInitializer(java.lang.Class c) {
23          jq_Type t = Reflection.getJQType(c);
24          if (t instanceof jq_Class) {
25              return ((jq_Class)t).getClassInitializer() != null;
26          }
27          return false;
28      }
29  }